import javax.swing.*;
import java.awt.event.*;

public class Spreadsheet {
   public static void main(String[] args) {
      JFrame f = new JFrame("Spreadsheet");
      JTable table = new JTable(20,5);
      JScrollPane scroller = new JScrollPane(table);
      f.setContentPane(scroller);
      f.setBounds(10,10,200,200);
      f.setVisible(true);
      f.addWindowListener(new WindowAdapter() {
         public void windowClosing(WindowEvent e) {
            Launcher.programQuit();
            e.getWindow().dispose();
         }});
   }
}

